/******************************************************************
 * MODULE NAME:    l2_psm.h
 * PROJECT CODE:
 * DESCRIPTION:    Functions for L2CAP connection oriented PSMs
 * MAINTAINER:     Gary Fleming
 * DATE:           18 November 1999
 *
 * SOURCE CONTROL: 
 *
 * LICENSE:
 *     This source code is copyright (c) 2000-2002 RDA Microelectronics, Ltd.
 *     All rights reserved.
 *
 *    
 ******************************************************************/

#ifndef __RDA_L2_PSM_H
#define __RDA_L2_PSM_H

#include "l2_types.h"

#define SDP_PSM                         (0x01)
#define RFCOMM_PSM                      (0x03)
#define AVDTP_PSM						(0x19)
#define AVCTP_PSM						(0x17)
#define TCS_PSM_TCSBIN		            (0x05)
#define TCS_PSM_TCSCORDLESS             (0x07)
#define HID_PSM_CONTROL                 (0x11)
#define HID_PSM_INTERRUPT               (0x13)


u_int8 rdabt_l2_psm_get_module_id(t_psm psm_value);
t_api rdabt_l2_psm_event(u_int8 module_id, u_int16 event,t_L2_ControlCallbackArgs*  eventinfo);
u_int8 rdabt_l2_psm_get_clt_state(u_int16 psm);

extern struct l2cap_psm rdabt_l2_psm_cb_list[]; 
extern u_int16 rdabt_l2_psm_id_array[];  


#endif
